05 - Project 1
π§Ά Project: Detection of Defective Wool Insulation Pipes
1. Project Overview
You will design, train, and evaluate a quality control system for detection of defective wool insulation for pipes. The goal is to detect all defective pipes before they go to the customers.
2. The Dataset
The dataset provides 256 Γ 256 color images from factory quality control station. It consists of 500 images belonging to two classes: defect (50 images) and good (450 images). Private test set consists of 200 images but different class distribution.
Class mapping used for labels and predictions: 0 - good, 1 - defect (defect is the positive class for F1-Score).
Dataset source: https://chmura.put.poznan.pl/s/aHdLYeCjGdSGMSS
Dataset password is available on eKursy platform in Project 1 section
Dataset has the following structure:
wool_pipes_dataset/
βββ defect/
β βββ 60diameter_40wall_thickness_20260408_124348_050945.jpg
β βββ 70diameter_30wall_thickness_20260408_113715_783436.jpg
β βββ ... (50 total images)
βββ good/
βββ 60diameter_40wall_thickness_20260408_124120_795705.jpg
βββ 70diameter_30wall_thickness_20260408_120406_314895.jpg
βββ ... (450 total images)
Samples from dataset: (left) defect; (right) good
sample
3. Technical Objectives
A. Data Pre-processing & Augmentation
- Add pre-processing transforms (e.g., data normalization).
- Apply data augmentation on training splits.
B. Model Architecture
Propose approach for detecting defects and justify it. You can implement simple classification model handling unbalanced dataset or try with autoencoders for anomaly detection.
C. Training Loop & Evaluation
- Loss: e.g., BCE for classification
- Batch size: fit to GPU (e.g., 4β32 at 448x448); use mixed precision if available.
- Epochs: ~200-300 with early stopping on val F1-Score (patience ~20).
- Metrics: accuracy, F1-Score, precision/recall.
4. Deliverables
Short Report
A short report in PDF format
({surname}_{name}_project_1_report.pdf) with max 2-3 pages,
including:
- Data preprocessing and normalization choices explaining pre- and post-processing methodology
- Model architecture, loss, optimizer, and hyperparameters
- Learning curves and validation metrics (e.g.Β accuracy, F1-Score, precision/recall)
- Qualitative panel: image, prediction, model explainability visualization (e.g., GradCam for classification model)
- Ablations (e.g., input size, benchmark results, unbalanced dataset handling methods)
Test Set Results
Model will be evaluated based on F1-Score metric (from torchmetrics library) calculated between predicted and ground truth labels on private test set.
Evaluation service
NOTE: Special service for testing model on private test and instruction how to use it will be provided soon.
Source Code
Export source code to the compressed folder
({surname}_{name}_source_code.zip). It should include:
- Training code and config (paths, hyperparameters, augmentations)
- Best model checkpoint
Acknowledgment
We thank Rockwool for providing the wool insulation pipes dataset.